/**
 * Created by hong on 2017/6/30.
 */
function getdata(str) {
    $.get("/getNewsByID?id="+str, function(result){
        console.log(result.content.title);
        //alert("data"+result.content[0].content);
        var app4 = new Vue({
            el: '#content',
            data: {
                todos: result.content
            }
        })
        var hh = $("#nr").html();
        //alert(marked(hh));
        $("#nr").html(marked(hh)) ;
    },"json");
}